import axios from "axios";
axios.defaults.baseURL = "http://localhost:3001";


const paper = ({ name } = {}) => {
    return axios.get("/lzx/paper", { params: { name } });
}

const cate = (params = {}) => {
    return axios.get("/lzx/clazz", { params });
}

const result = (params = {}) => {
    return axios.get("/lzx/result", { params });
}

const ques = (params = {}) => {
    return axios.get("/lzx/questionModel", { params });
}

const editResult = ({ list } = {}) => {
    return axios.put('/lzx/editResult', { list })
}

const qqq = (params = {}) => {
    return axios.get("/lzx/questionModel", { params });
}

export { paper, cate, result, ques, editResult, qqq };